<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Argumentation</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> Argumentation</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Class Argumentation.php</p>
<p class="description"><p>Class that deals with the storage/management of arguments inserted by users</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Jose Oliveira &lt;<a href="mailto:jafo@ua.pt">jafo@ua.pt</a>&gt; 2012</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_serverResources---includes---classes---Argumentation.php.html">/serverResources/includes/classes/Argumentation.php</a> (line <span class="field">11</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">Argumentation</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$arg</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$argType</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">integer</span>
										<a href="#addArg" title="details" class="method-name">addArg</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#editedArgIDs" title="details" class="method-name">editedArgIDs</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#getAllArgs" title="details" class="method-name">getAllArgs</a>
											(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#getAllArgsOfUser" title="details" class="method-name">getAllArgsOfUser</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#getNoEditedArgInfo" title="details" class="method-name">getNoEditedArgInfo</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">integer</span>
										<a href="#getNumberOfArgs" title="details" class="method-name">getNumberOfArgs</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">boolean</span>
										<a href="#isEdited" title="details" class="method-name">isEdited</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$argID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#preparedArrayForAdmin" title="details" class="method-name">preparedArrayForAdmin</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#unsetArg" title="details" class="method-name">unsetArg</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$argID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">bool</span>
										<a href="#updateToEdited" title="details" class="method-name">updateToEdited</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$argID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">bool</span>
										<a href="#validArg" title="details" class="method-name">validArg</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$arg</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$argType</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">28</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">Argumentation</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$arg</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$argType</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$arg</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$argType</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$userID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddArg" id="addArg"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">addArg</span> (line <span class="line-number">48</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that stores an argument on the table Argument case this is  not an edtition to a previously made question​​.</p>
<p class="description"><p>return 0: storing of the question has failed  return 1: improved question stored with success  return 2: the question has been previously entered by the user</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			addArg
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodeditedArgIDs" id="editedArgIDs"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">editedArgIDs</span> (line <span class="line-number">256</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the IDs of all arguments that have been edited  from a certain user.</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			editedArgIDs
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$userID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetAllArgs" id="getAllArgs"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getAllArgs</span> (line <span class="line-number">119</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the info about all arguments of a project that haven't been edited</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getAllArgs
		</span>
					(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">unknown_type</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetAllArgsOfUser" id="getAllArgsOfUser"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getAllArgsOfUser</span> (line <span class="line-number">86</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the info about all arguments of a user that haven't been edited</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getAllArgsOfUser
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$userID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetNoEditedArgInfo" id="getNoEditedArgInfo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNoEditedArgInfo</span> (line <span class="line-number">299</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns the info about all arguments of a user that haven't been edited</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getNoEditedArgInfo
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$userID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetNumberOfArgs" id="getNumberOfArgs"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getNumberOfArgs</span> (line <span class="line-number">368</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the number of active arguments (not deleted by users) inserted by a certain user,</p>
<p class="description"><p>in a certain project, in the argumentation stage</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			getNumberOfArgs
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$userID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodisEdited" id="isEdited"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">isEdited</span> (line <span class="line-number">151</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that checks if an argument was edited</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			isEdited
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$argID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$argID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodpreparedArrayForAdmin" id="preparedArrayForAdmin"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">preparedArrayForAdmin</span> (line <span class="line-number">396</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns an array with info properly formatted for the project administrator, with arguments,</p>
<p class="description"><p>edited and unedited from each user in a certain project</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			preparedArrayForAdmin
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$userID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodunsetArg" id="unsetArg"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">unsetArg</span> (line <span class="line-number">340</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method used to unset a certain argument. Used when a user wants to delete a argument</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			unsetArg
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$argID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$argID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateToEdited" id="updateToEdited"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">updateToEdited</span> (line <span class="line-number">226</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that update de field &quot;edited&quot; of this argument to &quot;1&quot;</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			updateToEdited
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$argID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$argID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodvalidArg" id="validArg"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">validArg</span> (line <span class="line-number">188</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that verifies if this argument has not yet been entered by this user</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			validArg
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$arg</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$argType</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$userID</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$projectID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$arg</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$argType</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$userID</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$projectID</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Fri, 22 Feb 2013 05:33:53 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>